﻿using Blazui.Admin;
using Microsoft.AspNetCore.Components;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Project13776616780_01
{
    public partial class MainLayout
    {
        protected List<MenuModel> Menus { get; set; } = new List<MenuModel>();

        protected override void OnInitialized()
        {
            Menus.Add(new MenuModel()
            {
                Label = "系统设置",
                Icon = "el-icon-star-on",
                Route = "/"
            });
            Menus.Add(new MenuModel()
            {
                Label = "分类管理",
                Icon = "el-icon-coin",
                Route = "/categories"
            });
            Menus.Add(new MenuModel()
            {
                Label = "委托单位",
                Icon = "el-icon-coin",
                Route = "/company"
            });
            Menus.Add(new MenuModel()
            {
                Label = "作者",
                Icon = "el-icon-coin",
                Route = "/authors"
            });
            Menus.Add(new MenuModel()
            {
                Label = "尺寸",
                Icon = "el-icon-coin",
                Route = "/sizes"
            });
            Menus.Add(new MenuModel()
            {
                Label = "广告",
                Icon = "el-icon-coin",
                Route = "/adv"
            });
            Menus.Add(new MenuModel()
            {
                Label = "产品管理",
                Icon = "el-icon-reading",
                Route = "/products"
            });
            Menus.Add(new MenuModel()
            {
                Label = "模板编辑",
                Icon = "el-icon-edit",
                Route = "/template"
            });
            Menus.Add(new MenuModel()
            {
                Label = "回收站",
                Icon = "el-icon-coffee",
                Route = "/recyle"
            });
            Menus.Add(new MenuModel()
            {
                Label = "生成管理",
                Icon = "el-icon-check",
                Route = "/gens"
            });
        }
    }
}
